all:
	@echo "Just do: make clean"

clean:
	- rm SpaStaSwe/hs_err_*.log
	- rm spiking/TimerExample/hs_err_*.log

build3rdparty: jutils

jutils: 3rdparty/jutils~svn/trunk/target/jutils-1.0.1-SNAPSHOT.jar

3rdparty/jutils~svn/trunk/target/jutils-1.0.1-SNAPSHOT.jar: 3rdparty/jutils~svn/trunk/pom.xml
	cd 3rdparty/jutils~svn/trunk; mvn compile
	cd 3rdparty/jutils~svn/trunk; mvn verify

get3rdparty: 3rdparty/jinput~svn  3rdparty/jutils~svn 3rdparty/lwjgl


3rdparty/jinput~svn: svn
	cd 3rdparty; svn checkout --quiet https://svn.java.net/svn/jinput~svn

3rdparty/jutils~svn: svn
	cd 3rdparty; svn checkout --quiet https://svn.java.net/svn/jutils~svn

3rdparty/lwjgl: git
	cd 3rdparty; git clone https://github.com/LWJGL/lwjgl.git

3rdparty/lwjglStable: wget
	cd 3rdparty; wget -O LWJGL-2.9.0.zip http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.0/lwjgl-2.9.0.zip/download
	cd 3rdparty; unzip LWJGL-2.9.0.zip
	cd 3rdparty; wget -O LWJGL-DOCS-2.9.0.zip http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.0/lwjgl-docs-2.9.0.zip/download
	cd 3rdparty/lwjgl-2.9.0; unzip ../LWJGL-DOCS-2.9.0.zip
	cd 3rdparty; wget -O LWJGL-SOURCE-2.9.0.zip http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.0/lwjgl-source-2.9.0.zip/download
	mkdir 3rdparty/lwjgl-2.9.0/source
	cd 3rdparty/lwjgl-2.9.0/source; unzip ../../LWJGL-SOURCE-2.9.0.zip
	

git: /usr/bin/git
svn: /usr/bin/svn
wget: /usr/bin/wget
